// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2024-04-03",
  devtools: { enabled: false },
  modules: ["nuxt-icons"],
  // 样式配置
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@use "@/assets/styles/default.scss" as *;', // 注意文件路径要配成自己的
        },
      },
    },
  },
  // 软件配置
  app: {
    head: {
      title: "郭磊的博客",
      bodyAttrs: { style: "margin:0; padding: 0;" },
      meta: [{ name: "keyword", content: "郭磊的博客" }],
      link: [{ rel: "icon", type: "image/x-icon", href: "og-image.png" }],
    },
  },
  devServer: {
    //开发服务器
    host: "", //默认值:localhost
    https: false, //是否开启https
    port: 3000, //监听端口 默认"3000"
    url: "http://localhost:3000", //监听url
  },
});
